package cn.com.git.workflow.common;

/**
 * 工作流程操作类型
 * @author zhangzhenfu
 * @Description
 * @date 2020/4/12 0012 10:16
 */
public enum WorkFlowNodeOperateEnum {

    START("start","发起流程",true,false),

    AGREE("agree","通过",false,false),

    TRANSFER("transfer","转移",false,false),

    REJECT("reject","拒绝",false,false),

    SUBMIT("submit","提交",false,false),

    END("end","结束流程",false,true)

    ;

    private String code;

    private String name;

    private boolean start;

    private boolean end;

    WorkFlowNodeOperateEnum(String code, String name, boolean start, boolean end) {
        this.code = code;
        this.name = name;
        this.start = start;
        this.end = end;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isStart() {
        return start;
    }

    public void setStart(boolean start) {
        this.start = start;
    }

    public boolean isEnd() {
        return end;
    }

    public void setEnd(boolean end) {
        this.end = end;
    }

}
